package vn.fpt.fsoft.autotest.trustregionDAO;

import static org.junit.Assert.*;

import org.junit.Test;

import vn.fpt.fsoft.autotest.database.DBWithNoRow;
import vn.fpt.fsoft.autotest.database.TrustRegionDB;
import vn.fpt.fsoft.dao.TrustRegionDAO;

public class GetTrustRegionByKey {

    @Test
    public void testInput1() {
        TrustRegionDB.CreateData();
        TrustRegionDAO dao = new TrustRegionDAO();
        assertNotNull(dao.getTrustRegionByKey(1));
    }
    
    @Test
    public void testInput2() {
        TrustRegionDB.CreateData();
        TrustRegionDAO dao = new TrustRegionDAO();
        assertNull(dao.getTrustRegionByKey(3));
    }
    
    @Test
    public void testInput3() {
        DBWithNoRow.CreateData();
        TrustRegionDAO dao = new TrustRegionDAO();
        assertNull(dao.getTrustRegionByKey(1));
    }

}
